package com.gxa.eurekaclient.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author thinknovo
 * @version 1.0
 * @description MyController.java
 * @date 2021/3/9 11:26
 */
@RestController
@RequestMapping(value = "user", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MyController {
    @RequestMapping(value = "/login")  // get post delete put
    public Map<String, Object> login(String username) {
        Map<String, Object> map = new HashMap<>();
        map.put("code", 200);
        map.put("msg", "8864登录成功!");
        map.put("username", username);
        return map;
    }
}
